import java.util.Vector;


public class State
{
	private boolean commited;
	private boolean urgent; // Er ikke brugt.
	private boolean initial; // Er ikke brugt.

	private Vector transitionList;
	
	public State()
	{
		this(false, false, false);
	}
	
	public State(boolean commited, boolean urgent, boolean initial)
	{
		this.commited = commited;
		this.urgent = urgent;
		this.initial = initial;
		
		transitionList = new Vector();
	}
	
	public void addTransition(Transition t)
	{
		transitionList.addElement(t);
	}

	public boolean hasTransitions() {
		return !transitionList.isEmpty();
	}

	public boolean isCommited() {
		return commited;
	}
}
